<template>
  <div>
    <div class = 'btns'>
      <el-button @click="nowTag">现有确诊</el-button>
      <el-button @click="allTag">累计确诊</el-button>
    </div>
    <Map :tag_1 = 'tag'></Map>
  </div>
</template>
<script>
import Map from "../../components/Map";
export default {
  //局部注册组件
  components: {
    Map,
  },
  methods: {
      nowTag() {
          this.tag = 0;
      },
      allTag() {
          this.tag = 1;
      }
  },
  data() {
    return {
        tag:0
    };
    // 0-> 现有确诊
    // 1-> 累计确诊
  },
};
</script>

<style>
    .btns .el-button:nth-child(2) {
        margin-left: 0 !important;
    }
</style>
